package com.asa;

import java.util.HashMap;
import java.util.Map;

import org.apache.commons.lang3.RandomStringUtils;
import org.apache.lucene.util.RamUsageEstimator;

public class Test {
	
	public static void main(String[] args) {
//		--add-opens java.base/java.lang=ALL-UNNAMED
//		--add-opens java.base/java.util=ALL-UNNAMED
		Map<String, String> map = new HashMap<>();
        System.out.println("map init value is " + RamUsageEstimator.sizeOf(map));
        for (int i = 0; i < 1000; i++) {
            RandomStringUtils.randomAlphanumeric(100);
            map.put(RandomStringUtils.randomAlphanumeric(10), RandomStringUtils.randomAlphanumeric(100));
        }
        System.out.println("map size 100, value is " + RamUsageEstimator.sizeOf(map));
        System.out.println("map size 100, value is " + RamUsageEstimator.humanSizeOf(map));
        
        
        
        long currentTimeMillis = System.currentTimeMillis();
        currentTimeMillis = currentTimeMillis/86400000;
        System.out.println(currentTimeMillis);
        long single = currentTimeMillis%2;
        System.out.println(single);
        if(single==0) {
        	System.out.println(114514);
        }
        

	}
}
